#ifndef TIMEUTIL_H
#define TIMEUTIL_H

#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFiMulti.h>
#include <WiFiClientSecureBearSSL.h>
#else
#include <WiFiUdp.h>
#include <WiFi.h>
#include <HTTPClient.h>
#endif

// NTP服务器
// static const char ntpServerName[] = "ntp6.aliyun.com";
static const char ntpServerName[] = "203.107.6.88";
const int timeZone = 8; //东八区

time_t getNtpTime();

String num2str(int digits);
//星期
String week();
//月日
String monthDay();
//时分
String hourMinute();
//时分
String hourMinute(String time);
#endif //TIMEUTIL_H